import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
//引入路由
import router from "./router"
//引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import "./assets/global.scss"
import "./utils/routerHook"
//引入pinia持久存储
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
let app = createApp(App)

app.use(router)
app.use(ElementPlus)
let pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.mount('#app')
